package com.itheima.factory;

import com.itheima.service.UserService;
import com.itheima.service.impl.UserServiceImpl;

public class UserServiceFactory {

    public static UserService getService(){
        System.out.println("instance UserServiceFactory is run ...");
        return new UserServiceImpl();
    }

    public UserService getUserService(){
        System.out.println("实例化工厂创建中 ...");
        return new UserServiceImpl();
    }
}
